# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4
GCONF_DEBUG="no"

inherit vala gnome2 cmake-utils

DESCRIPTION="An Integrated LaTeX Environment for GNOME"
HOMEPAGE="http://projects.gnome.org/latexila/"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome -vala"

RDEPEND=">=x11-libs/gtk+-2.16:2
	>=x11-libs/gtksourceview-2.10:2.0
	dev-libs/libgee
	dev-libs/libunique:1
	gnome? ( gnome-base/gsettings-desktop-schemas )"
DEPEND="${RDEPEND}
	>=dev-util/itstool-1.1
	vala? ( >=dev-lang/vala-0.12.1:0.12 )"

#DOCS="AUTHORS MAINTAINERS NEWS README THANKS"

CMAKE_MIN_VERSION="2.6.4"

if use vala; then
	VALA_REQUIRED_VERSION="0.12"
fi

src_configure() {
	mycmakeargs="$(cmake-utils_use_build vala VALA) \
	$(cmake-utils_use_with gnome GNOME)
	-DCOMPILE_SCHEMA=OFF"

	cmake-utils_src_configure
}
